﻿#include "student.h"
#include "QDebug"

student::student(QObject *parent) : QObject(parent)
{

}
void student::treat()
{
    qDebug()<<"请老师吃饭";
}
void student::treat(QString foodname)
{
    //QString->char * 先转成QByteArray(  .toUtf8()  )  再转成char *()
    qDebug()<<"请老师吃饭，老师要吃:"<<foodname.toUtf8().data();
}
